package ooday05;

public class EnumTest02 {
    public static void main(String[] args) {
        Enum02 a = Enum02.SUMMER;
        switch (a){
            case SPRING:
                System.out.println("春天");
                break;
            case SUMMER:
                System.out.println("夏天");
                break;
            case AUTUMN:
                System.out.println("秋天");
                break;
            case WINTER:
                System.out.println("冬天");
                break;
        }

        Enum02[] b = Enum02.values();
        for (int i = 0; i <b.length ; i++) {
            System.out.println(b[i]);
            System.out.println(b[i].getName());
            System.out.println(b[i].getDesc());
        }
    }
}
